package org.jeecg.modules.purchase.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.purchase.Vo.PurchaseSchemeVo;
import org.jeecg.modules.purchase.entity.PurchasePlan;

public interface IPurchasePlanService extends IService<PurchasePlan> {

    boolean savePurchasePlan(PurchasePlan purchasePlan);

    boolean updatePurchasePlan(PurchasePlan purchasePlan);

    boolean auditPurchasePlan(String id, String auditStatus, String auditOpinion, String auditor);

    IPage<PurchasePlan> queryPurchasePlanPage(Page<PurchasePlan> page, PurchasePlan purchasePlan);

    PurchasePlan getApprovedPlanById(String id);

    boolean checkProjectNumberExists(String projectNumber);

    boolean auditpurchaseScheme(String id, String Status, String auditOpinion, String username);

    boolean addPurchaseScheme(PurchaseSchemeVo purchaseSchemeVo, String username);

//    boolean publishPurchasePlan(String id, String auditStatus, String auditOpinion, String auditor);

    boolean isExistPurchasePlan(String purchasePlanId);

}
